home *** CD-ROM | disk | FTP | other *** search
/ Zoom 2 / Zoom - Release 2 (1996)(Active Software)[!].iso / programming / amigac / dice_c_demo / diceinst.script < prev    next >
Encoding:
Text File  |  1978-01-04  |  2.5 KB  |  83 lines

  1. (delopts "force")               ;Unprotect destination files automatically
  2. (set dice_dest (
  3.            (askdir
  4.            (prompt "Please select where you want Commercial Dice V3 "
  5.                    "Tutorial to be installed. A drawer called \"DCC\" will "
  6.                    "be made in the selected directory. You will need about "
  7.                    "1.8MB of free space on your Hard Disk partition."
  8.            )
  9.            (help @askdir-help)
  10.            (default "work:")
  11.            )
  12.           )
  13. )
  14.  
  15. (complete 0)
  16. (set dice_dest (tackon dice_dest "DCC"))
  17. (makedir dice_dest)
  18. (set @default-dest dice_dest)
  19. (makedir (tackon dice_dest "DTMP"))
  20.  
  21. (copyfiles (source "dice1:")
  22.            (dest dice_dest)
  23.            (prompt "Copying Disk1")
  24.            (infos)
  25.            (choices "CONFIG" "BIN" "REXX" "HELLO" "VMake" "VOpts")
  26. )
  27. (copyfiles (source "dice1:s")
  28.            (dest   "s:")
  29.            (choices ".EDRC")
  30.            (prompt "Copying DME Config")
  31. )
  32.  
  33. (complete 30)
  34.  
  35. (copyfiles (source "dice2:")
  36.            (dest   dice_dest)
  37.            (prompt "Copying Disk2")
  38.            (infos)
  39.            (choices "DLIB" "INCLUDE")
  40. )
  41.  
  42. (complete 60)
  43.  
  44. (copyfiles (source "dice3:")
  45.            (dest   dice_dest)
  46.            (prompt "Copying Disk3")
  47.            (infos)
  48.            (choices "DOC" "EXAMPLES" "Readme" "Upgrade" "more")
  49. )
  50.  
  51. (complete 90)
  52.  
  53. (startup   "--Commercial Dice C Tutorial--"
  54.            (command "assign dcc: \"" dice_dest "\"\n"
  55.                     "assign dlib: dcc:dlib\n"
  56.                     "assign dinclude: dcc:include\n"
  57.                     "assign ddoc: dcc:doc\n"
  58.                     "assign dtmp: dcc:dtmp\n"
  59.                     "setenv dccopts=\"-2.0 -// -f -R\"\n"
  60.                     "path dcc:bin add\n"
  61.            )
  62.            (prompt  "Some commands need to be added to your "
  63.                     "user-startup."
  64.            )
  65.            (help    "Dice C needs some assigns and a path to be "
  66.                     "added to the /"s:user-startup/" file. If you "
  67.                     "do not do this then Dice will not run correctly "
  68.                     "from your hard drive."
  69.            )
  70. )
  71. (complete 100)
  72. (askbool
  73.    (prompt "All the required Assigns have been set for you to run DICE. "
  74.        "Your startup script automatically adds DICE to the path. "
  75.        "Until you reboot, you need to issue the command: PATH ADD DCC:BIN "
  76.        "in any shell you wish to run DICE from.\n\n"
  77.    )
  78.    (help   "You may wish to check the s:User-Startup file to be sure "
  79.        "everything is in the proper place.")
  80.    (choices "Thank You" "")
  81.    (default 0)
  82. )
  83.